package com.sunbim.rsrv.cronjob;

import cn.hutool.core.lang.Console;
import com.sunbim.rsrv.mapper.StorageMapper;
import com.sunbim.rsrv.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@EnableScheduling
public class TestJob {
    @Autowired
    StorageService storageService;

    @Scheduled(cron = "0/5 * * * * ?")
    public void test() {
        // 写定时执行的业务
        // Console.log("测试定时任务");
    }
}
